
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class QuestionBO : Csla.BusinessBase<QuestionBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in QuestionBO
			//AuthorizationRules.AllowRead(QuestionIDProperty, "QuestionBOReadGroup");
			//AuthorizationRules.AllowRead(QuestionNameProperty, "QuestionBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "QuestionBOReadGroup");

			//AuthorizationRules.AllowWrite(QuestionNameProperty, "QuestionBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "QuestionBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of QuestionBO
			//AuthorizationRules.AllowCreate(typeof(QuestionBO), "QuestionBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(QuestionBO), "QuestionBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(QuestionBO), "QuestionBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.Question data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
